import os
import sys
from p17t import hoi4
# 命令行 python test.py [HOI4 路径] [语言] [目标路径]
music_list=hoi4.find_all_music(os.path.join(sys.path[1],"music"),os.path.join(sys.path[1],"dlc"),os.path.join(sys.path[1],"integrated_dlc"))
music_name=hoi4.get_music_names(os.path.join(sys.path[1],"localisation"),sys.argv[2] if len(sys.argv)>1 else "english")
path_name_list=hoi4.match_names(music_list,music_name)
hoi4.copy_music(path_name_list,sys.argv[3])